package com.spring.boot;

import org.assertj.core.util.Lists;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class StrongToListConverter implements Converter<String, List<String>> {
    @Override
    public List<String> convert(String source) {
        return Lists.newArrayList(source.split(","));
    }
}
